<div id="content_body" class="row">
<div class="main1-title" style="display:none;">
	<fly:translate name="txt_openning" /><fly:modify name='txt_openning' />
</div>
<div class="wrapper-contact">
	<div class="col-lg-6 col-md-6 col-sm-6">
	<div class="row">
		<div class="col-lg-12">
			<h6 class="header-gray"><span class="glyphicon glyphicon-envelope"></span><b><fly:translate name="title_rooftop_oriental" /><fly:modify name='title_rooftop_oriental' /></b></h6>
			<div class="list">
			<ul>
                            <li><i class="list-icon"></i><span class="glyphicon glyphicon-phone"></span> : <fly:translate name="contact_office_r" /><fly:modify name='contact_office_r' /></li>
                            <li><i class="list-icon"></i><span class="glyphicon glyphicon-envelope"></span> : <fly:translate name="contact_email_r" /><fly:modify name='contact_email_r' /></li>
                            <li><i class="list-icon"></i><span class="glyphicon glyphicon-phone"></span> : <fly:translate name="contact_mobile_r" /><fly:modify name='contact_mobile_r' /></li>
                            <li><i class="list-icon"></i><span class="glyphicon glyphicon-map-marker"></span> : <fly:translate name="contact_website_r" /><fly:modify name='contact_website_r' /></li>
                            <li><i class="list-icon"></i><span class="glyphicon glyphicon-map-marker"></span> : <fly:translate name="contact_address_r" /><fly:modify name='contact_address_r' /></li>
				</ul>
			</div>
		</div>
		<hr size="1" width="100%" color="#C2C1BB" />
		<div class="col-lg-12">
			<h6 class="header-gray"><span class="glyphicon glyphicon-picture"></span><b><fly:translate name="title_photos" /><fly:modify name='title_photos' /></b></h6>
				<a href="/_design/contact_us.jpg" class="zoom-gallery">
					<img src="/_design/contact_us.jpg" width="199" height="133" title="Rooftop real estate agency office" />
				</a>
				<a href="/_design/_rooftop_agency_map.jpg" class="zoom-gallery">
					<img src="/_design/_rooftop_agency_map.jpg" width="199" height="133" title="Rooftop real estate agency office" />
				</a>
				<a href="/_design/rooftop-oriental-office-3.jpg" class="zoom-gallery">
					<img src="/_design/rooftop-oriental-office-3.jpg" width="199" height="133" title="Rooftop Oriental luxury real estate office - Raffles Phnom Penh" />
				</a>
				<a href="/_design/rooftop-oriental-office-1.jpg" class="zoom-gallery">
					<img src="/_design/rooftop-oriental-office-1.jpg" width="199" height="133" title="Rooftop Oriental luxury real estate office - Raffles Phnom Penh" />
				</a>
		</div>
		
	</div></div>
	<div class="col-lg-6 col-md-6 col-sm-6">
		<fly:block name="message_successful">
			<div id="form-ligne">
				<fly:variable name='message_successful' />
			</div>
		</fly:block>
		<fly:block name="not_connection">
		<form method="post" id="frm" autocomplete="off" class="form-horizontal marg-top-0" role="form">
			<!-- ====== header ====== -->
						<!-- <div class="row"> -->
						<h6 class="header-gray"><span class="glyphicon glyphicon-edit"></span><b>Request more informaiton</b></h6>
						<!-- </div> -->
			
			<div class="form-group">
			    <label for="txtFirstName" class="col-sm-3 control-label"><fly:translate name="label_contact_name" /> *<span id="loading"></span><fly:modify name='label_contact_name' /></label>
			    <div class="col-sm-9">
			      	<input autocomplete="off" type="text" name="your_name" placeholder="<fly:translate name="label_contact_name" />" id="your_name" class="form-control required name info_bull text" size="25" maxlength="255" />
			    </div>
		  	</div>
			
			<div class="form-group">
			    <label for="txtFirstName" class="col-sm-3 control-label"><fly:translate name="label_2" /> *<span id="loading"></span><fly:modify name='label_2' /></label>
			    <div class="col-sm-9">
			      	<input autocomplete="off" type="text" name="your_email" placeholder="<fly:translate name="label_2" />" id="your_email" class="form-control required email info_bull text" size="25" maxlength="255" />
			    </div>
		  	</div>
			
			<div class="form-group">
			    <label for="txtFirstName" class="col-sm-3 control-label"><fly:translate name="label_contact_tel" />*<span id="loading"></span><fly:modify name='label_contact_tel' /></label>
			    <div class="col-sm-9">
			      	<input autocomplete="off" type="text" name="your_tel" placeholder="<fly:translate name="label_contact_tel" />" id="your_tel" class="form-control required telephone info_bull text" size="25" maxlength="255" />
			    </div>
		  	</div>
		  	
			<div class="form-group">
			    <label for="txtFirstName" class="col-sm-3 control-label"><fly:translate name="label_contact_subject" />*<span id="loading"></span><fly:modify name='label_contact_subject' /></label>
			    <div class="col-sm-9">
			      	<input autocomplete="off" type="text" name="your_subject" placeholder="<fly:translate name="label_contact_subject" />" id="your_subject" class="form-control required subject info_bull text" size="25" maxlength="255" />
			    </div>
		  	</div>
		  
			
			<div class="form-group">
			    <label for="txtMsg" class="col-sm-3 control-label"><fly:translate name="label_3" /> *<fly:modify name='label_3' /></label>
			    <div class="col-sm-9">
			      	<textarea name="message_send" id="message_send" cols="50" placeholder="<fly:translate name="label_3" />" rows="10" class="form-control textarea1 required info_bull"><fly:variable name="text_contact"/></textarea>
			      	<br>
			      	<input type="submit" value="<fly:translate name="button_1" />" id="register" name="register" class="submit" /><fly:modify name="button_1" />
			    </div>

		  	</div>
		
		</form>
		</fly:block>
</div>
<div id="foot"></div>
</div>
<script type="text/javascript">
	$('document').ready(function(){
		$("#type").change(function(){
			var filter = $(this).val();
			filter = filter.substr(filter.indexOf('===')+3, filter.length);
			window.location.href = "contact.php?"+filter;
		});
		$('form').validate();
		$('.info_bull').mouseover(function(){
			setInfoBulles(this);
		}).mouseout(function(){
			$('.info_divs').hide();			
		});

		$("#your_email").keyup(function(){
			$("#email").val($(this).val());
			$("#email_confirm").val($(this).val());	
		});
		
		/****** info bulles********/		
		$('.info_bull').mouseover(function(){
			setInfoBulles(this);
		}).mouseout(function(){
			$('.info_div').hide();			
		});

	});
	function setInfoBulles(obj){
		var offset = $(obj).offset();//,'left':offset.left
		$('.info_divs').css({'top':offset.top-320});
		
		if($(obj).attr('alt')!="undefined"){
			$('.info_div_text').text($(obj).attr('alt'));
		}else{
			$('.info_div_text').text($(obj).attr('title'));
		}
		$('.info_divs').css("display","block");
	}

</script>
<script type="text/javascript">
	$(function(){
        // =================== popup gallery ======================
		$('.zoom-gallery').magnificPopup({
		    type: 'image',
		    gallery:{
		     	enabled:true
		    },
		    zoom: {
		        enabled: true,
		        duration: 300, // don't foget to change the duration also in CSS
		        opener: function(element) {
		            return element.find('img');
		        }
		    }
		});
	});
</script>